body {
  display: flex;
  /* 主轴为垂直方向，起点在上沿 */
  flex-direction: column;
}
.main {
  flex: 1;
  overflow-y: scroll;
}
.main .swiper-container {
  width: 100%;
  height: 200px;
  background-color: tan;
  margin-bottom: 10px;
}
.main .swiper-container .bg1,
.main .swiper-container .bg2,
.main .swiper-container .bg3 {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.main .swiper-container .bg1 {
  background-image: url(../images/index-swiper-bg1.jpg);
}
.main .swiper-container .bg2 {
  background-image: url(../images/index-swiper-bg2.jpg);
}
.main .swiper-container .bg3 {
  background-image: url(../images/index-swiper-bg3.jpg);
}
.main ul {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding-left: 14px;
  padding-right: 14px;
}
.main ul li {
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 15px;
  background-repeat: no-repeat;
  position: relative;
}
.main ul .ranking {
  width: 35%;
  height: 150px;
  background-color: rgba(21, 146, 204, 0.73);
}
.main ul .ranking #rank {
  color: white;
  font-size: 54px;
  position: absolute;
  bottom: 25px;
  right: 10px;
  font-weight: 600;
  z-index: 1;
}
.main ul .ranking > .ranimg {
  width: 100%;
  height: 150px;
  position: absolute;
  background-image: url(../images/index01.png);
  background-repeat: no-repeat;
  background-size: 106px 106px;
  background-position: -15px 31px;
  opacity: 0.3;
}
.main ul .record {
  width: 55%;
  height: 150px;
  background-color: rgba(123, 203, 245, 0.73);
}
.main ul .record .clock-in {
  color: #004e73;
  border: 3px solid #005177;
}
.main ul .record .clock {
  color: darkgray;
  border: darkgray 3px solid;
}
.main ul .record .clock-in,
.main ul .record .clock {
  width: 94px;
  line-height: 34px;
  position: absolute;
  top: 85px;
  right: 15px;
  font-size: 16px;
  border-radius: 25px;
  font-weight: 700;
  z-index: 2;
  text-align: center;
}
.main ul .record .recimg {
  background-image: url(../images/index02.png);
  width: 100%;
  height: 150px;
  position: absolute;
  background-repeat: no-repeat;
  background-size: 110px 110px;
  background-position: 10px 30px;
  opacity: 0.67;
}
.main ul .ranking h4,
.main ul .record h4,
.main ul .badge h4 {
  color: #004e73;
  font-size: 20px;
  line-height: 58px;
  position: absolute;
  z-index: 1;
  margin-left: 15px;
}
.main ul .exercise {
  width: 45%;
  height: 110px;
  background-image: url(../images/index03.png);
  background-size: 100% 110px;
}
.main ul .badge {
  width: 45%;
  height: 110px;
  background-color: #9dbde3;
}
.main ul .badge h4 {
  font-size: 16px;
  line-height: 46px;
}
.main ul .badge .badimg {
  width: 100%;
  height: 100%;
  background-image: url(../images/index04.png);
  background-repeat: no-repeat;
  background-size: 105px 105px;
  background-position: 5px 15px;
}
.main ul .drill {
  background-image: url(../images/index05.jpg);
}
.main ul .outdoors {
  background-image: url(../images/index06.png);
}
.main ul .drill,
.main ul .outdoors {
  width: 100%;
  height: 110px;
  background-size: cover;
}
.main ul .drill h5,
.main ul .outdoors h5,
.main ul .exercise h5 {
  color: #ffffff;
  font-size: 16px;
  line-height: 48px;
  margin-left: 15px;
}
